package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperActivityTypeMapper;
import com.ruoyi.system.domain.SuperActivityType;
import com.ruoyi.system.service.ISuperActivityTypeService;

/**
 * 活动大类Service业务层处理
 * 
 * @author xjf
 * @date 2025-08-13
 */
@Service
public class SuperActivityTypeServiceImpl implements ISuperActivityTypeService 
{
    @Autowired
    private SuperActivityTypeMapper superActivityTypeMapper;

    /**
     * 查询活动大类
     * 
     * @param id 活动大类主键
     * @return 活动大类
     */
    @Override
    public SuperActivityType selectSuperActivityTypeById(Long id)
    {
        return superActivityTypeMapper.selectSuperActivityTypeById(id);
    }

    /**
     * 查询活动大类列表
     * 
     * @param superActivityType 活动大类
     * @return 活动大类
     */
    @Override
    public List<SuperActivityType> selectSuperActivityTypeList(SuperActivityType superActivityType)
    {
        return superActivityTypeMapper.selectSuperActivityTypeList(superActivityType);
    }

    /**
     * 新增活动大类
     * 
     * @param superActivityType 活动大类
     * @return 结果
     */
    @Override
    public int insertSuperActivityType(SuperActivityType superActivityType)
    {
        return superActivityTypeMapper.insertSuperActivityType(superActivityType);
    }

    /**
     * 修改活动大类
     * 
     * @param superActivityType 活动大类
     * @return 结果
     */
    @Override
    public int updateSuperActivityType(SuperActivityType superActivityType)
    {
        return superActivityTypeMapper.updateSuperActivityType(superActivityType);
    }

    /**
     * 批量删除活动大类
     * 
     * @param ids 需要删除的活动大类主键
     * @return 结果
     */
    @Override
    public int deleteSuperActivityTypeByIds(Long[] ids)
    {
        return superActivityTypeMapper.deleteSuperActivityTypeByIds(ids);
    }

    /**
     * 删除活动大类信息
     * 
     * @param id 活动大类主键
     * @return 结果
     */
    @Override
    public int deleteSuperActivityTypeById(Long id)
    {
        return superActivityTypeMapper.deleteSuperActivityTypeById(id);
    }
}
